<?php use_stylesheet('frontend/modules/post.css') ?>

<?php slot('content_right') ?>
  <div>
    <fb:like href="http://www.jnieto.org/article/<?php echo $post->getSlug() ?>" show_faces="true" width="450" font="verdana"></fb:like>
    <h3>Last Posts</h3>
    <div style="background-color: #F4F4F4; float: right; text-align: left; width: 160px; padding: 8px;">
      <?php foreach ($posts as $p): ?>
        <div class="post_link<?php if ($p->getId() == $post->getId()): ?> current_link<?php endif?>">
          <?php echo $p->getLink() ?>
        </div>
        <br/>
      <?php endforeach ?>
    </div>
    
    <div class="separator"></div>
  </div>
<?php end_slot() ?>

<div class="post">
  <h1><?php echo link_to($post->getTitle(), '@post_show?slug='.$post->getSlug()) ?></h1>
  <br/>
  <span>
    <?php foreach ($post->getCategories() as $category): ?>
      <?php echo $category->getName() ?> |
    <?php endforeach ?>
    <?php echo $post->getFormattedDatetime() ?>
  </span>
  <br/>
  <?php echo $post->getPostIndex()->getContent() ?>
</div>
<br/>

<?php include_partial('Post/comment', array('post' => $post, 'commentForm' => $commentForm)) ?>
